<template>
  <div class="top">
    <div class="content">
      <!--左侧-->
      <div class="left" @click="goHome">
        <img src="../../assets/vue.svg" alt=""  />
        <p>尚医通 预约挂号统一平台</p>
      </div>
      <div class="right">
        <p class="help">帮助中心</p>
        <p class="login">登录/注册</p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
//引入路由器
import { useRouter } from 'vue-router';
let $router=useRouter();

const goHome=()=>
{
  $router.push({path:'/home'})

}
</script>

<style scoped lang="scss">
.top {
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 70px;
  background: #fff;
  display: flex;
  justify-content: center;
}
.content {
  width: 1200px;
  height: 70px;
  background: white;
  display: flex;
  justify-content: space-between;
}
.left {
  display: flex;
  justify-content: center;
  align-items: center;
  img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    margin-left:20px ;
  }
  p {
    font-size: 20px;
    color: #55a6fe;
  }
}
.right {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #bbb;
  .help {
    margin-right: 10px;
  }
  .login{

    margin-right: 10px;
  }
}
</style>
